<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html><head>
    <title>SubjectProtocol</title>
	<meta name="generator" content="HeaderDoc">
</head><body bgcolor="#ffffff"><h1><font face="Geneva,Arial,Helvtica">SubjectProtocol</font></h1><hr><br>
<h2>Abstract</h2>
This interface declare the subject part of the Observer Pattern
<hr><br><h2>Methods</h2>

<h3><a name="attach:">attach:</a></h3>
<b>Abstract:</b> Add an observer to the subject

<blockquote><pre><tt>- (void)<B>attach:</B>(id<ObserverProtocol>)<I>anObserver;</I> </tt><br>
</pre></blockquote>
<p></p>
<h4>Parameters</h4>
<blockquote>
<table border="1"  width="90%">
<thead><tr><th>Name</th><th>Description</th></tr></thead>
<tr><td align="center"><tt>anObserver</tt></td><td>The new subject's observer</td></tr>
</table>
</blockquote>
<hr>

<h3><a name="detach:">detach:</a></h3>
<b>Abstract:</b> Remove an observer from the subject

<blockquote><pre><tt>- (void)<B>detach:</B>(id<ObserverProtocol>)<I>anObserver;</I> </tt><br>
</pre></blockquote>
<p></p>
<h4>Parameters</h4>
<blockquote>
<table border="1"  width="90%">
<thead><tr><th>Name</th><th>Description</th></tr></thead>
<tr><td align="center"><tt>anObserver</tt></td><td>The observer to remove</td></tr>
</table>
</blockquote>
<hr>

<h3><a name="getAllObservers">getAllObservers</a></h3>
<b>Abstract:</b> Get all the subscribe observers

<blockquote><pre><tt>- (NSSet*)<B>getAllObservers;</B> </tt><br>
</pre></blockquote>
<p></p>
<b>Result:</b> The Set of all observers

<hr>
<p><p>&#169; 2009 T.DUPONT P.DUCHENE (Last Updated 3/6/2010)
</p></body></html>
